package com.bestcem.xm.user.util.business.mapstract;

import org.apache.commons.lang3.StringUtils;

/**
 * 字符串为空字符串设置空值策略
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/20 17:33
 */
public interface StringEmptyStrategy {

    default String stringStrategy(String str) {
        return StringUtils.isBlank(str) ? null : str;
    }
}
